import http from './http';

export const getCaptchaImage = () => http.get('/captcha/image');

export const login = (params) => http.post('/login', params);

export const getUser = () => http.get('/user');

export const logout = () => http.post('/logout');

export const changePwd = (params) => http.put('/administrator/password', params);

export const getDashboard = () => http.get('/dashboard');

export const statistic = (val, params) => http.get(`/statistic/${val}`, { params });
